package com.wordpress.sharebyblog.world.domain;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="city")
@XmlAccessorType(XmlAccessType.FIELD)
@Entity
public class City implements Serializable {

	@XmlElement
	@Id
    @GeneratedValue(strategy=GenerationType.AUTO)
	private  Long id;
	@XmlElement
	private  String name;
	@XmlElement
	private  String countryCode;
	@XmlElement
	private  String district;
	@XmlElement(name="cityPopulation")
	private  BigDecimal population;
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	
	
	
	/**
	 * @return the district
	 */
	public String getDistrict() {
		return district;
	}
	/**
	 * @return the countryCode
	 */
	public String getCountryCode() {
		return countryCode;
	}
	/**
	 * @param countryCode the countryCode to set
	 */
	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}
	/**
	 * @param district the district to set
	 */
	public void setDistrict(String district) {
		this.district = district;
	}
	/**
	 * @return the population
	 */
	public BigDecimal getPopulation() {
		return population;
	}
	/**
	 * @param population the population to set
	 */
	public void setPopulation(BigDecimal population) {
		this.population = population;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("City [id=");
		builder.append(id);
		builder.append(", name=");
		builder.append(name);
		builder.append(", countryCode=");
		builder.append(countryCode);
		builder.append(", district=");
		builder.append(district);
		builder.append(", population=");
		builder.append(population);
		builder.append("]");
		return builder.toString();
	}
	
	
	
	
	
	
	
}
